import com.gzc.pojo.School;

import java.util.ArrayList;

public class Test {

	public static void main(String[] args) {

		School school = new School((byte) 1,"广东省",(long) 1);
		School school1 = new School((byte) 0,"广西省",(long)2);
		School school2 = new School((byte) 2,"广东省",(long)3);
		School school3 = new School((byte) 1,"北京市",(long)4);
		School school4 = new School((byte) 1,"广东省",(long)5);
		School school5 = new School((byte) 0,"广东省",(long)6);

		ArrayList<School> list = new ArrayList<>();
		list.add(school);
		list.add(school1);
		list.add(school2);
		list.add(school3);
		list.add(school4);
		list.add(school5);

/*
		ArrayList<Long> longs = new ArrayList<>();
		longs.add((long) 1);
		longs.add((long) 3);
		longs.add((long) 4);
;


		List<School> list1 = QueryListUtil.getInstance()
				.addEqualCondition("formal", formal,QueryListUtil.IN)
				.addEqualCondition("schoolID",1,QueryListUtil.EQUAL)
				.query(list);

		System.out.println(list1);*/
/*
		ArrayList<Byte> formal = new ArrayList<>();
		formal.add((byte) 1);
		formal.add((byte) 2);
		List<School> collect = list.stream().filter((s) -> {

			if (s.getFormal()==1||s.getFormal()==2) {
				return true;
			}else {
				return false;
			}
		}).collect(Collectors.toList());
		System.out.println(collect);*/

	}
}
